/**
 * 
 */
package metalink.admin;

import java.util.ArrayList;
import java.util.Vector;

import vo.mixed.LibraryStudentVo;
import model.admin.LibraryMo;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Sony
 * 
 */

public class ListAllIndividualBooks extends ActionSupport {
	ArrayList<LibraryStudentVo> allBooks;
	String view, category, book_id;
	String book_name;
	private int result;

	// ------------ Pagination --------------//
	private int page;
	private String morepages;
	private Vector noofpages = new Vector();
	private int nextpage;
	private int currentpage;
	private String hasprevpage;
	private int prevpage;
	private int items;
	// private Vector pagelist=new Vector();
	private ArrayList<LibraryStudentVo> pagelist;

	public String execute() {

			System.out.println("Listing all individual books of book_name="+book_name);
			LibraryMo mo = new LibraryMo();
			allBooks = new ArrayList<LibraryStudentVo>();
			allBooks = mo.allIndividualBooks(book_name);
			setBook_name(book_name);
			return SUCCESS;
	}

	public String getBook_id() {
		return book_id;
	}

	public void setBook_id(String book_id) {
		this.book_id = book_id;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public ArrayList<LibraryStudentVo> getAllBooks() {
		return allBooks;
	}

	public void setAllBooks(ArrayList<LibraryStudentVo> allBooks) {
		this.allBooks = allBooks;
	}

	public String getView() {
		return view;
	}

	public void setView(String view) {
		this.view = view;
	}

	public int getResult() {
		return result;
	}

	public String getBook_name() {
		return book_name;
	}

	public void setBook_name(String book_name) {
		this.book_name = book_name;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public String getMorepages() {
		return morepages;
	}

	public void setMorepages(String morepages) {
		this.morepages = morepages;
	}

	public Vector getNoofpages() {
		return noofpages;
	}

	public void setNoofpages(Vector noofpages) {
		this.noofpages = noofpages;
	}

	public int getNextpage() {
		return nextpage;
	}

	public void setNextpage(int nextpage) {
		this.nextpage = nextpage;
	}

	public int getCurrentpage() {
		return currentpage;
	}

	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}

	public String getHasprevpage() {
		return hasprevpage;
	}

	public void setHasprevpage(String hasprevpage) {
		this.hasprevpage = hasprevpage;
	}

	public int getPrevpage() {
		return prevpage;
	}

	public void setPrevpage(int prevpage) {
		this.prevpage = prevpage;
	}

	public int getItems() {
		return items;
	}

	public void setItems(int items) {
		this.items = items;
	}

	public ArrayList<LibraryStudentVo> getPagelist() {
		return pagelist;
	}

	public void setPagelist(ArrayList<LibraryStudentVo> pagelist) {
		this.pagelist = pagelist;
	}

	// --------------------------------------//

}
